package com.sgb.kjwl.model.entity.website;

import android.text.TextUtils;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.model.entity.manage.AddItemEntity;
import com.sgb.kjwl.model.entity.self.UserInquiryEntity;

import java.util.List;

public class WebsiteUpDataJingyingYejiEntity  extends BaseObservable {
    //项目类型
    private int type;

    private String typeName;
    //甲方参与人
    private String certifier;
    //市级名称
    private String cityName;
    //市级编号
    private String cityNo;
    //企业编号
    private String companyNo;
    //详细地址
    private String detailedAddress;
    //区级名称
    private String districtName;
    //区级编号
    private String districtNo;
    //编号ID
    private String id;
    //简介
    private String introduction;
    //项目名称
    private String name;
    //编号NO
    private String no;
    //业主单位
    private String owner;
    //参与人员
    private String participant;
    //项目金额
    private String price;
    //省级名称
    private String provinceName;
    //省级编号
    private String provinceNo;
    //项目状态(0未开始，1进行中，2已完工)
    private String status;
    private String statusName;
    //用户名称
    private String userName;
    //用户编号
    private String userNo;
    //文件名称
    private String fileName;
    //证明文件集合字符串[{"url": "http://x.PNG","name": "x.PNG"}]
    private String file;
    private String siteType; //网站类型  0-个人 1-企业 2-团队 默认为1
    private List<FileListBean> fileList;
    private String phone;
    //承包方式
    private String contractMode;
   // 产品供应数量
    private String supplyNum;
    //合格产品数量
    private String qualifiedNum;
    //交付及时率
    private String timelinessRate;
    //进厂件不良率
    private String badRate;
    //同比增加
    private String increase;
    //净利润
    private String netProfit;
    //载重
    private String load;
    //起始地省级编号
    private String startProvinceNo;
    //起始地市级编号
    private String startCityNo;
    //起始地区级编号
    private String startDistrictNo;
    //起始地省级名称
    private String startProvinceName;
    //起始地市级名称
    private String startCityName;
    //起始地区级名称
    private String startDistrictName;
    //起始地详细地址
    private String startDetailedAddress;
    //目的地省级编号
    private String endProvinceNo;
    //目的地市级编号
    private String endCityNo;
    //目的地区级编号
    private String endDistrictNo;
    //目的地省级名称
    private String endProvinceName;
    //目的地市级名称
    private String endCityName;
    //目的地区级名称
    private String endDistrictName;
    //目的地详细地址
    private String endDetailedAddress;

    private int isDeleted;

    private String createUser;
    private String createTime;
    private String updateTime;
    private String updateUser;

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getLoad() {
        return load;
    }

    public void setLoad(String load) {
        this.load = load;
    }

    public String getStartProvinceNo() {
        return startProvinceNo;
    }

    public void setStartProvinceNo(String startProvinceNo) {
        this.startProvinceNo = startProvinceNo;
    }

    public String getStartCityNo() {
        return startCityNo;
    }

    public void setStartCityNo(String startCityNo) {
        this.startCityNo = startCityNo;
    }

    public String getStartDistrictNo() {
        return startDistrictNo;
    }

    public void setStartDistrictNo(String startDistrictNo) {
        this.startDistrictNo = startDistrictNo;
    }

    public String getStartProvinceName() {
        return startProvinceName;
    }

    public void setStartProvinceName(String startProvinceName) {
        this.startProvinceName = startProvinceName;
    }

    public String getStartCityName() {
        return startCityName;
    }

    public void setStartCityName(String startCityName) {
        this.startCityName = startCityName;
    }

    public String getStartDistrictName() {
        return startDistrictName;
    }

    public void setStartDistrictName(String startDistrictName) {
        this.startDistrictName = startDistrictName;
    }

    public String getStartDetailedAddress() {
        return startDetailedAddress;
    }

    public void setStartDetailedAddress(String startDetailedAddress) {
        this.startDetailedAddress = startDetailedAddress;
    }

    public String getEndProvinceNo() {
        return endProvinceNo;
    }

    public void setEndProvinceNo(String endProvinceNo) {
        this.endProvinceNo = endProvinceNo;
    }

    public String getEndCityNo() {
        return endCityNo;
    }

    public void setEndCityNo(String endCityNo) {
        this.endCityNo = endCityNo;
    }

    public String getEndDistrictNo() {
        return endDistrictNo;
    }

    public void setEndDistrictNo(String endDistrictNo) {
        this.endDistrictNo = endDistrictNo;
    }

    public String getEndProvinceName() {
        return endProvinceName;
    }

    public void setEndProvinceName(String endProvinceName) {
        this.endProvinceName = endProvinceName;
    }

    public String getEndCityName() {
        return endCityName;
    }

    public void setEndCityName(String endCityName) {
        this.endCityName = endCityName;
    }

    public String getEndDistrictName() {
        return endDistrictName;
    }

    public void setEndDistrictName(String endDistrictName) {
        this.endDistrictName = endDistrictName;
    }

    public String getEndDetailedAddress() {
        return endDetailedAddress;
    }

    public void setEndDetailedAddress(String endDetailedAddress) {
        this.endDetailedAddress = endDetailedAddress;
    }


    public String getContractMode() {
        return contractMode;
    }

    public void setContractMode(String contractMode) {
        this.contractMode = contractMode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<FileListBean> getFileList() {
        return fileList;
    }

    private List<AddItemEntity> customFields;//自定义字段

    public List<AddItemEntity> getCustomFields() {
        return customFields;
    }

    public void setCustomFields(List<AddItemEntity> customFields) {
        this.customFields = customFields;
    }

    public String getIncrease() {
        return increase;
    }

    public void setIncrease(String increase) {
        this.increase = increase;
    }

    public String getNetProfit() {
        return netProfit;
    }

    public void setNetProfit(String netProfit) {
        this.netProfit = netProfit;
    }

    public String getStatusName() {
        if (TextUtils.isEmpty(status)){
            statusName = "";
            return statusName;
        }
        switch (status){
            case "0":
                statusName = "未开始";
                break;
            case "1":
                statusName = "进行中";
                break;
            case "2":
                statusName = "已完工";
                break;
        }
        return statusName;
    }
    @Bindable
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
        notifyPropertyChanged(BR.type);
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
        notifyPropertyChanged(BR.typeName);
    }
    @Bindable
    public String getTypeName() {
        String typeName = "";
        switch (type){
            case 1:
                typeName = "工程项目";
                break;
            case 2:
                typeName = "商品供应";
                break;
            case 3:
                typeName = "租赁业绩";
                break;
            case 4:
                typeName = "物流业绩";
                break;
            case 5:
                typeName = "其他业绩";
                break;
        }
        return typeName;
    }

    public String getSupplyNum() {
        return supplyNum;
    }

    public void setSupplyNum(String supplyNum) {
        this.supplyNum = supplyNum;
    }

    public String getQualifiedNum() {
        return qualifiedNum;
    }

    public void setQualifiedNum(String qualifiedNum) {
        this.qualifiedNum = qualifiedNum;
    }

    public String getTimelinessRate() {
        return timelinessRate;
    }

    public void setTimelinessRate(String timelinessRate) {
        this.timelinessRate = timelinessRate;
    }

    public String getBadRate() {
        return badRate;
    }

    public void setBadRate(String badRate) {
        this.badRate = badRate;
    }

    public String getSiteType() {
        return siteType;
    }

    public void setSiteType(String siteType) {
        this.siteType = siteType;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public void setFileList(List<FileListBean> fileList) {
        this.fileList = fileList;
    }

    public String getCertifier() {
        return certifier;
    }

    public void setCertifier(String certifier) {
        this.certifier = certifier;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getParticipant() {
        return participant;
    }

    public void setParticipant(String participant) {
        this.participant = participant;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public static class FileListBean {
        /**
         * name : timg.jpg
         * fileUrl : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200927121254844448384.jpg
         */

        private String name;
        private String fileUrl;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getFileUrl() {
            return fileUrl;
        }

        public void setFileUrl(String fileUrl) {
            this.fileUrl = fileUrl;
        }
    }


    public static class FileListBean2 {
        /**
         * name : timg.jpg
         * fileUrl : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200927121254844448384.jpg
         */

        private String name;
        private String url;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
